﻿using System.ComponentModel.DataAnnotations;

namespace UnityTemplate.ApiModel.Request
{
    public class LoginRequest
    {
        /// <summary>
        /// 登录用户账户
        /// </summary>
        [StringLength(32, ErrorMessage = "{0}最多{1}个字符"), Display(Name = "用户名")]
        [Required]
        public string UserName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        [Required]
        [StringLength(32, ErrorMessage = "{0}最多{1}个字符"), Display(Name = "用户密码")]
        public string Password { get; set; }
    }
}
